﻿<Window x:Class="SDB.SongPlayerTestWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:SDB"
    Title="SongPlayerTestWindow" Height="300" Width="300">
    <Window.Resources>
        <local:MediaValueConverter x:Key="media_converter" />
        <Style x:Key="lbi_playlist" TargetType="{x:Type ListBoxItem}">
            <Setter Property="Content">
                <Setter.Value>
                    <MultiBinding Converter="{StaticResource media_converter}" ConverterParameter="PlaylistSongTitle">
                        <MultiBinding.Bindings>
                            <Binding Path="ParentArtist.Name" />
                            <Binding Path="Title" />
                        </MultiBinding.Bindings>
                    </MultiBinding>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <StackPanel>
        <local:SongPlayer x:Name="player" />
        <ListBox Height="200" x:Name="lstPlaylist" ItemContainerStyle="{StaticResource lbi_playlist}" />
        <TextBox x:Name="txtCurrentSong" />
    </StackPanel>
</Window>
